package mock.dao;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class Connector {
	public static Connection getConnection(){
		Connection con = null;
		try {
			Class.forName(com.microsoft.sqlserver.jdbc.SQLServerDriver.class.getName());
			String connectionString = 
					"jdbc:sqlserver://10.16.102.121;" +
					"databaseName=MockProject_Team3_java;user=sa;password=12345678";
			con = DriverManager.getConnection(connectionString);
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return con;
	}
}